home *** CD-ROM | disk | FTP | other *** search
- unit DRTable;
-
- interface
-
- uses Windows, SysUtils, Classes, BDE, DB, DBTables;
-
- type
-
- { TDRList }
-
- TDRList = class(TBdeDataSet)
- protected
- function CreateHandle: HDBICur; override;
- end;
-
- { TDRDataSet }
-
- TDRDataSet = class(TBdeDataSet)
- public
- property DRHandle: HDBIDR;
- end;
-
- { TDRObjectDescList }
-
- TDRObjectDescList = class(TDRDataSet)
- protected
- function CreateHandle: HDBICur; override;
- end;
-
- { TDRObjectItems }
-
- TDRObjectItems = class(TDRDataset)
- protected
- FObjectName: string;
- end;
-
- { TDRRelationshipDescList }
-
- TDRRelationshipDescList = class(TDRObjectItems)
- protected
- function CreateHandle: HDBICur; override;
- published
- property ObjectTypeName: string;
- end;
-
- { TDRAttrDescList }
-
- TDRAttrDescList = class(TDRObjectItems)
- protected
- function CreateHandle: HDBICur; override;
- published
- property TypeName: string;
- end;
-
- { TDRInstanceItems }
-
- TDRInstanceItems = class (TDRObjectItems)
- published
- property Condition: string;
- end;
-
- { TDRObjectList }
-
- TDRObjectList = class(TDRInstanceItems)
- protected
- function CreateHandle: HDBICur; override;
- public
- procedure NavigateFrom(const ASource: DRObject; const ARelationship: string);
- published
- property ObjectTypeName: string;
- end;
-
- { TDRRelationshipList }
-
- TDRRelationshipList = class(TDRInstanceItems)
- protected
- function CreateHandle: HDBICur; override;
- public
- procedure NavigateFromTo(const ASource, ATarget: DRObject);
- published
- property RelationshipTypeName: string;
- end;
-
- { TQueryDescription }
-
- TQueryDescription = class(TBdeDataset)
- protected
- function CreateHandle: HDBICur; override;
- procedure DestroyHandle; override;
- public
- property Query: TQuery;
- end;
-
- const
- NullDRObject: DRObject = (ulObjId: 0; iVersion: 0);
-
- { **************************************************************************** }
-
- implementation
-